package ynu.edu.dao;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import ynu.edu.common.dao.LogicDAO;
import ynu.edu.entity.Item;

import java.util.List;

public interface ItemDao extends LogicDAO<Item,Long> {

    @Query("select i from Item i where i.business.id=:businessId")
    public List<Item> findAllByBusinessId(@Param(value = "businessId")Long businessId);
}
